//
//  WebsiteViewCell.m
//  Qya
//
//  Created by maxwell pang on 12-9-8.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "WebsiteViewCell.h"

@implementation WebsiteViewCell

@synthesize mWebsiteName;
@synthesize mCheckBox;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)awakeFromNib
{
    [self setCheckBox];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setCheckBox
{
    [mCheckBox setImage:[UIImage imageNamed:@"weixuanzhong"] forState:UIControlStateNormal];
    [mCheckBox setImage:[UIImage imageNamed:@"xuanzhong"] forState:UIControlStateSelected];
    
    [mCheckBox addTarget:self action:@selector(checkboxClick:) forControlEvents:UIControlEventTouchUpInside]; 
}

- (void)checkboxClick:(UIButton *)btn
{
    btn.selected = !btn.selected;
}

@end
